import { RouteRecordRaw } from "vue-router";

const routes = [
  {
    path: "/home",
    name: "tabbar",
    redirect: "/pageList/index",
    component: () => import("@/views/tabbar/tabbar.vue"),
    children: [
      {
        path: "/selfService",
        name: "selfService",
        component: () =>
          import(
            /* webpackChunkName: "Home" */
            "@/views/pageList/selfService.vue"
          ),
        meta: {
          title: "首页",
          index: 15,
        },
      },

      {
        path: "/mine",
        name: "mine",
        component: () =>
          import(/* webpackChunkName: "Mine" */ "@/views/pageList/mine.vue"),
        meta: {
          title: "我的",
          index: 1,
        },
      },
    ],
  },
];

export default routes;
